package com.qualityevaluationclouduser.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

/**
 * @program qualityEvaluationCloudProject
 * @Description  
 * @Author  CaoAMan
 * @Date 2021-02-25 19:11:48 
 */

@Entity
@Table ( name ="T_ST_USERROLERE", schema = "public")
@Data
public class UserRoleRe {

	private static final long serialVersionUID =  7751746501910256346L;

	@Id
	/**
	 * 序号
	 */
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "F_ID" )
	private Long id;

	/**
	 * 用户ID
	 */
   	@Column(name = "F_USERID" )
	private Long userid;

	/**
	 * 角色ID
	 */
   	@Column(name = "F_ROLEID" )
	private Long roleid;

	/**
	 * 创建者
	 */
   	@Column(name = "F_CREATOR" )
	private String creator;

	/**
	 * 创建时间
	 */
   	@Column(name = "F_CREATIONDATE" ,columnDefinition = "datetime")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date creationdate;

	/**
	 * 创建者
	 */
   	@Column(name = "F_REMARK" )
	private String remark;

}
